import java.io.IOException;

public class CalcCUP {

    public static void main( String args[] ) throws java.lang.Exception {
        lexer  calcLexer = new lexer( System.in );
        parser calcParser = new parser( calcLexer );
	try {
            //calcParser.debug_parse();
            calcParser.parse();
	} catch( IOException e ) {
	    System.out.println( "Got IOException: " + e + "... Aborting" );
            System.exit(1);
	}
    }
}
